package com.jdd.modules.parking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jdd.modules.parking.entity.ParkCarOutEntranceRecord;
import com.jdd.modules.parking.entity.ParkCarOutLog;
import com.jdd.modules.parking.vo.MontiorSearchRespVo;
import com.jdd.modules.parking.vo.QueryPageDetailsListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 车辆车场信息
 * @Author: jdd
 * @Date: 2021-02-20
 * @Version: V1.0
 */
public interface ParkCarOutLogMapper extends BaseMapper<ParkCarOutLog> {

    void editSynchronousStatus(@Param("id") String id, @Param("synchronousStatus") String synchronousStatus);

    List<ParkCarOutLog> findBySynchronousStatus(@Param("synchronousStatus") String synchronousStatus);

    String findIdBySerialAndPlate(@Param("serialNo") String serialNo, @Param("plateNo") String plateNo);

    /*** 功能描述: 监控页面出场日志的查询数据
     * @Author: lcy
     * @Date: 2021/11/19
     */
    List<MontiorSearchRespVo> monitorList(@Param("plateNo") String plateNo, @Param("armName") String armName, @Param("serials") List<String> serials, @Param("swichType") String swichType, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);

    /*** 功能描述: 监控页面出场日志的总数居
     * @Author: lcy
     * @Date: 2021/11/19
     */
    List<MontiorSearchRespVo> monitorListAll(@Param("beginTime") String beginTime);



    IPage<QueryPageDetailsListVO>  selectCarEnterIdRecord(@Param("page") Page<QueryPageDetailsListVO> page, @Param("batchNumber") String batchNumber, @Param("carEnterId") String carEnterId);
}
